package zl.mapper;

import org.apache.ibatis.annotations.Param;
import zl.bean.User;

import java.util.List;

public interface UserMapper {
    int addUser(User user);

    int deleteUser(Integer id);

    int updateUser(User user);

    List<User> selectAllUser(@Param("keyword") String keyword);

    User selectById(Integer id);

    User selectByUsername(@Param("username") String username,@Param("nickname") String nickname);


}
